package Student2;

public class TestStudent2 {
    public static void main(String[] args) {
        Student stu = new Student();
        stu.setStudentId("2025003");
        stu.setName("王五");
        stu.setAge(20); // 合法年龄
        stu.setAge(15); // 不合法年龄
        System.out.println("学生信息: " + stu.getStudentId() + " "
                + stu.getName() + " " + stu.getAge() + "岁");
    }
}
